﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ViewComments.ascx.vb"
    Inherits="UserCuntrols_ViewComments" EnableViewState="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:GridView ID="gvViewComments" runat="server" CssClass="datagrid" GridLines="Horizontal"
    Width="98%" AlternatingRowStyle-CssClass="datagridAlterRow" HeaderStyle-CssClass="datagridHeader"
    HorizontalAlign="Center" PagerSettings-NextPageText="Next >" PagerSettings-PreviousPageText="< Prev"
    PagerSettings-Mode="NextPrevious" AllowPaging="False" PageSize="10" AutoGenerateColumns="False"
    ShowHeader="false">
    <AlternatingRowStyle CssClass="datagridAlterRow" />
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <div style="float: left; color: #0000FF; font-weight: bold;">
                    <%#CreateCommentsLink(Eval("Website_Name"), Eval("Link"))%>
                </div>
                <div style="float: right;">
                    <%#StarRating(CInt(Eval("rating")))%>
                </div>
                <br />
                <div style="float: left;width:100%;">
                    <div style="float: left;">
                        <%#RestrictLinkSize(Eval("Link").ToString())%>
                    </div>
                    <div style="float: right;">
                        <%#CreateAddCommentsLink(Eval("Website_Name").ToString())%>
                    </div>
                </div>
            </ItemTemplate>
            <ItemStyle Wrap="True" />
        </asp:TemplateField>
    </Columns>
    <HeaderStyle CssClass="datagridHeader" />
    <PagerSettings Mode="NextPrevious" NextPageText="Next &gt;" PreviousPageText="&lt; Prev" />
</asp:GridView>
